<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
</h:head>
<h:body>
<composite:interface>
	<composite:attribute name="data" />
</composite:interface>
<composite:implementation>

	<table border="2px" width="500" align="center" >
		<tr>
			<th>#{msgs.movieTitle}</th>
			<th>#{msgs.movieYear}</th>
			<th>#{msgs.movieLength}</th>
			<th>#{msgs.movieCategories}</th>
			<th>#{msgs.movieActors}</th>
		</tr>
		<ui:repeat var="tableItem" value="#{cc.attrs.data}">
			<tr>
				<td>#{tableItem.movie.titlu}</td>
				<td>#{tableItem.movie.anLansare}</td>
				<td>#{tableItem.movie.durata}</td>
				<td>#{tableItem.categories}</td>
				<td>#{tableItem.actors}</td>
				<td><h:form><h:commandButton value="#{msgs.delTitle}"
					action="#{tableItem.remove}">
				</h:commandButton></h:form></td>
			</tr>
		</ui:repeat>

	</table>

</composite:implementation>

</h:body>
</html>